package com.zyh.system.supermark1.dao.impl;

import com.zyh.system.supermark1.dao.GoodsDao;
import com.zyh.system.supermark1.domain.Goods;

import java.math.BigDecimal;
import java.util.LinkedList;


public class GoodsDaoImpl implements GoodsDao {
    public static final LinkedList<Goods> GOODS_LIST =new LinkedList<>();

    static {
        GOODS_LIST.add(new Goods("10101", "海尔冰箱", new BigDecimal("3999.9"), 50));
        GOODS_LIST.add(new Goods("10102", "格力冰箱", new BigDecimal("2888.8"), 30));
        GOODS_LIST.add(new Goods("10103", "TCL冰箱", new BigDecimal("1999.8"), 100));
        GOODS_LIST.add(new Goods("10104", "美的冰箱", new BigDecimal("4999.9"), 60));
        GOODS_LIST.add(new Goods("10201", "海尔空调", new BigDecimal("3099.9"), 50));
        GOODS_LIST.add(new Goods("10202", "格力空调", new BigDecimal("2808.8"), 40));
        GOODS_LIST.add(new Goods("10203", "TCL空调", new BigDecimal("1099.8"), 120));
        GOODS_LIST.add(new Goods("10204", "美的空调", new BigDecimal("4909.9"), 65));
    }
}
